<%@ page contentType="text/html;charset=UTF-8"%>

<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>

<script language="JavaScript" type="text/javascript" src="../calendar/WdatePicker.js"></script>
<html:form action="register/registeraction">



<input type="hidden" name="steptype" value="1"/>
<input type="hidden" name="zdy8" value="${message.zdy8}"/>
	<div id="regright">
		<table border="0">
			<tr>
				<td class="textright">
					公司名称：
				</td>
				<td colspan="3">
					<html:text property="name" style="width:95%;" maxlength="50" size="38"  onblur="onblurdo(this)" value="${message.name}" ></html:text>
					<span class="f-12-F60000">*</span>
				</td>
			</tr>
			<tr>
				<td class="textright">
					公司地址：
				</td>
				<td colspan="3">
					<html:text property="corp_address" style="width:95%;" maxlength="256" size="20" onblur="onblurdo(this)" value="${message.corp_address}"></html:text>
					<span class="f-12-F60000">*</span>
				</td>
			</tr>
			<tr>
				<td class="textright" width="23%">
					法人代表：
				</td>
				<td width="30%">
					<html:text property="corporation" maxlength="50" size="20" onblur="onblurdo(this)" value="${message.corporation}"></html:text>
					<span class="f-12-F60000">*</span>
				</td>
				<td class="textright" width="17%">
					营业执照注册号：
				</td>
				<td width="30%">
					<html:text property="regno" style="width:85%;" maxlength="128" size="20" onblur="onblurdo(this)" value="${message.regno}"> </html:text>
					<span class="f-12-F60000">*</span>
				</td>
			</tr>
			<tr>
				<td class="textright">
					上级母公司名称(如有)：
				</td>
				<td>
					<html:text property="sjmgsmc" maxlength="256" size="20" value="${message.sjmgsmc}"></html:text>
				</td>
				<td class="textright">
					税务登记证号码：
				</td>
				<td>
					<html:text property="swdjzhm" style="width:85%;" maxlength="128" size="20" onblur="onblurdo(this)" value="${message.swdjzhm}"> </html:text>
					<span class="f-12-F60000">*</span>
				</td>
			</tr>
			<tr>
				<td class="textright">
					公司性质：
				</td>
				<td>
					<select name="property2" >
						<option value="1" 
							<logic:equal value="1" name="message" property="property2">
								selected
							</logic:equal>
						>国营</option>
						<option value="2"
						
						<logic:equal value="2" name="message" property="property2">
							selected
						</logic:equal>
						
						>集体</option>
						<option value="3"
						
						<logic:equal value="3" name="message" property="property2">
							selected
						</logic:equal>
						
						>股份制</option>
						<option value="4"
						
						<logic:equal value="4" name="message" property="property2">
							selected
						</logic:equal>
						
						>民营</option>
						<option value="5"
						
						<logic:equal value="5" name="message" property="property2">
							selected
						</logic:equal>
						
						>三资</option>
						<option value="6"
						
						<logic:equal value="6" name="message" property="property2">
							selected
						</logic:equal>
						
						
						>其他</option>
					</select>
					<span class="f-12-F60000">*</span>
				</td>
				<td class="textright">
					市场主体：
				</td>
				<td >
					<select name="sczt" >
						<option value="1" style="width:30%;" 
							<logic:equal value="1" name="message" property="sczt">
								selected
							</logic:equal>
						>集体</option>
						<option value="2" style="width:30%;" 
							<logic:equal value="2" name="message" property="sczt">
								selected
							</logic:equal>
						>母公司</option>
						<option value="3" style="width:30%;" 
							<logic:equal value="3" name="message" property="sczt">
								selected
							</logic:equal>
						>子公司</option>
						<option value="4" style="width:30%;" 
							<logic:equal value="4" name="message" property="sczt">
								selected
							</logic:equal>
						>分公司</option>
						<option value="5" style="width:30%;" 
							<logic:equal value="5" name="message" property="sczt">
								selected
							</logic:equal>
						>合资公司</option>
					</select>
					<span class="f-12-F60000">*</span>
				</td>
			</tr>
			<tr>
				<td class="textright">
					成立日期：
				</td>
				<td>
					<html:text property="regdate" maxlength="10" size="20"  value="${message.regdate}" onclick="WdatePicker()" readonly="true"></html:text>
					<span class="f-12-F60000">*</span>
				</td>
				<td class="textright">
					注册资本：
				</td>
				<td>
					<html:text property="regcapital" style="width:85%;" maxlength="50" size="20" onblur="onblurdo(this)" value="${message.regcapital}"></html:text>
					<span class="f-12-F60000">*</span>
				</td>
			</tr>
			<tr>
				<td class="textright">
					员工数量：
				</td>
				<td>
					<html:text property="employeenum" maxlength="50" size="20" onblur="onblurdo(this)" value="${message.employeenum}"></html:text>
					<span class="f-12-F60000">*</span>
				</td>
				<td class="textright">
					营业场地面积：
				</td>
				<td>
					<html:text property="businessarea" style="width:85%;" maxlength="50" size="20" onblur="onblurdo(this)" value="${message.businessarea}"></html:text>
					<span class="f-12-F60000">*</span>
				</td>
			</tr>
			<tr>
				<td class="textright">
					经营期限：
				</td>
				<td colspan="3">
					<html:text property="jyqx" maxlength="50" size="20" onblur="onblurdo(this)" value="${message.jyqx}"></html:text>
					<span class="f-12-F60000">*</span>
				</td>
				<!-- <td class="textright">
					营业执照：
				</td>
				<td>
					<html:text property="yyzz" style="width:85%;" maxlength="128" size="20" onblur="onblurdo(this)" value="${message.yyzz}"> </html:text>
					<span class="f-12-F60000">*</span>
				</td> -->
			</tr>
			<tr>
				<td class="textright">
					组织机构代码证代码（带中横杠）：
				</td>
				<td colspan="3">
					<html:text property="zzjgdm" maxlength="50" size="20" onblur="onblurdo(this)" value="${message.zzjgdm}"></html:text>
					<span class="f-12-F60000">*<html:errors/></span>
				</td>
			</tr>
			<tr>
				<td class="textright">
					是否有过不良纳税记录：
				</td>
				<td colspan="3">
					<select name="is_bad_record">
						<option value="1" 
							<logic:equal value="1" name="message" property="is_bad_record">
								selected
							</logic:equal>
						>是</option>
						<option value="2"
							<logic:equal value="2" name="message" property="is_bad_record">
								selected
							</logic:equal>
						>否</option>
						</select>
					<span class="f-12-F60000">*</span>
				</td>
			</tr>
			<tr>
				<td class="textright">
					不良纳税记录说明(如有)：
				</td>
				<td colspan="3">
					<html:textarea property="brecord_explain" cols="60" rows="3" value="${message.brecord_explain}" style="color:black;font-size:12px;" >
    				</html:textarea>
				</td>
			</tr>
			<tr>
				<td class="textright">
					公司管理团队情况：
				</td>
				<td colspan="3">
					<html:textarea property="team_explain" cols="60" rows="3" onblur="onblurdo(this)" value="${message.team_explain}" style="color:black;font-size:12px;" >
    				</html:textarea><span class="f-12-F60000">&nbsp;*</span>
				</td>
			</tr>
			<tr>
				<td class="textright">
					本产品市场主要竞争对手及份额排名：
				</td>
				<td colspan="3">
					<html:textarea property="jzds_pm" cols="60" rows="3" onblur="onblurdo(this)" value="${message.jzds_pm}" style="color:black;font-size:12px;">
    				</html:textarea><span class="f-12-F60000">&nbsp;*</span>
				</td>
			</tr>
			<tr>
				<td class="textright">
					经营活动不良记录（如有）：
				</td>
				<td colspan="3">
					<html:textarea property="bad_record" cols="60" rows="3" onblur="onblurdo(this)" value="${message.bad_record}" style="color:black;font-size:12px;" >
    				</html:textarea>
				</td>
			</tr>
			<tr>
				<td class="textright">
					提供产品类别：
				</td>
				<td colspan="3">
					<html:textarea property="tgcplb" readonly="true" cols="60" rows="3" onblur="onblurdo(this)" value="${message.tgcplb}" style="color:black;font-size:12px;"  onclick="javascript:openwin()">
    				</html:textarea><span class="f-12-F60000">&nbsp;*</span></td>
			</tr>
			<tr>
				<td colspan="4" class="f-12-F60000">
					说明：带“*”的为必填信息；若界面显示不全面，请先设置IE浏览器到兼容性视图，具体操作请见首页相关操作手册。
				</td>
			</tr>
			<tr>
				<td colspan="4" class="center">
					<img style="cursor:hand" src="../images/reset.jpg" width="60" height="20"  onclick="reset()" />
					&nbsp;&nbsp;
					<img style="cursor:hand" src="../images/next.jpg" width="60" onclick="onclicksubmit()"
							height="20" border="0" />
				
				</td>
			</tr>
		</table>

	</div>
</html:form>

<script language="javascript">
	function reset()
	{
		document.registerForm.reset();
	}
	
	
	function onclicksubmit()
	{
	var formtemp = document.registerForm;
	if(formtemp.name.value == '')
	{
		formtemp.name.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.corp_address.value == '')
	{
		formtemp.corp_address.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.corporation.value == '')
	{
		formtemp.corporation.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.regno.value == '')
	{
		formtemp.regno.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.zzjgdm.value == '')
	{
		formtemp.zzjgdm.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.swdjzhm.value == '')
	{
		formtemp.swdjzhm.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.property2.value == '')
	{
		formtemp.property2.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.sczt.value == '')
	{
		formtemp.sczt.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.regdate.value == '')
	{
		formtemp.regdate.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.regcapital.value == '')
	{
		formtemp.regcapital.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.employeenum.value == '')
	{
		formtemp.employeenum.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.businessarea.value == '')
	{
		formtemp.businessarea.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.jyqx.value == '')
	{
		formtemp.jyqx.style.backgroundColor="#ffaa44";
		return;
	}
	/*else if(formtemp.yyzz.value == '')
	{
		formtemp.yyzz.style.backgroundColor="#ffaa44";
		return;
	}*/
	else if(formtemp.tgcplb.value == '')
	{
		formtemp.tgcplb.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.jzds_pm.value == '')
	{
		formtemp.jzds_pm.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.team_explain.value == '')
	{
		formtemp.team_explain.style.backgroundColor="#ffaa44";
		return;
	}
	
		formtemp.submit();
	}
	
	
	function onblurdo(obj)
	{
		if(obj.value == '' )
		{
			obj.style.backgroundColor="#ffaa44";
		}else
		{
			obj.style.backgroundColor="#ffffff";
		}
	}
	function openwin() {  
		var k=showModalDialog ("./prod_cate_list.do?pk_reg="+document.getElementById('pk_gy_supplier_reg').value,window.self,"dialogWidth:700px;dialogHeight:450px:center:yes");
		if(k == "" || (k == "undefined;"))
			return ;
		var pk_name = k.split(";");
		document.getElementsByName('tgcplb')[0].value=pk_name[0];
		document.getElementsByName('zdy8')[0].value=pk_name[1];
	}
	
</script>